package org.mall.convert.system;

import org.mall.modules.message.entity.AppMessage;
import org.mall.modules.pojo.common.AppMessageDTO;
import org.mall.modules.pojo.message.AppMessageVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/***
 *@author yinxucun
 *@date 2020-01-08 00:10 
 */
@Mapper
public interface AppMessageConvert {
    AppMessageConvert INSTANCE = Mappers.getMapper(AppMessageConvert.class);

    AppMessage convert(AppMessageDTO dto);
    AppMessageVO convert2(AppMessage appMessage);
}
